<template>
    <!-- <button v-on:click="showInfo">点击我</button> -->
     <button @click="showInfo">点击我</button>
     <input type="text" @keyup.enter="showInfo" placeholder="">
</template>
<script>
const showInfo=() =>{
    alert('周末愉快，好远')
}
</script>